extends "../qiye-2/qiye-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("受到伤害时，获得3层<模糊>并立即起飞一架舰载机，无视该伤害(内置冷却5秒)", "LuckyE")

var skFlag3 = 5
var skIndex = 0
func _upS():
	._upS()
	if skIndex > 0:skIndex -= 1

func _onBattleStart():
	._onBattleStart()
	skIndex = 0

func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if skIndex == 0 and atkInfo.hurtVal > 0:
		atkInfo.virtual = true
		atkInfo.hurtVal = 0
		skIndex = skFlag3
		addBuff(buff.b_moHu.new(3))
		castPlane()
		
